/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsDonViBL
/// </summary>
namespace SES.CMS.BL 
{
    public class cmsDonViBL 
    {
    	#region Private Variables
		cmsDonViDAL objcmsDonViDAL;
		#endregion
		
        #region Public Constructors
        public cmsDonViBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsDonViDAL=new cmsDonViDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsDonViDO objcmsDonViDO)
        {
            return objcmsDonViDAL.Insert(objcmsDonViDO);
        }

        public int Update(cmsDonViDO objcmsDonViDO)
        {
             return objcmsDonViDAL.Update(objcmsDonViDO);

        }

        public int Delete(cmsDonViDO objcmsDonViDO)
        {
             return objcmsDonViDAL.Delete(objcmsDonViDO);

        }

         public int DeleteAll()
        {
             return objcmsDonViDAL.DeleteAll();
        }

         public cmsDonViDO Select(cmsDonViDO objcmsDonViDO)
         {
             return objcmsDonViDAL.Select(objcmsDonViDO);

         }
         public cmsDonViDO SelectByTen(string ten)
         {
             return objcmsDonViDAL.SelectByTen(ten);
         }

        public ArrayList SelectAll1( )
        {
         return objcmsDonViDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsDonViDAL.SelectAll();
        }

        public int InsertOrUpdateDonVi(cmsDonViDO objcmsDonViDO)
        {
            return objcmsDonViDAL.InsertOrUpdateDonVi(objcmsDonViDO);
        }
        public cmsDonViDO SelectByMaDonViTinh(cmsDonViDO objcmsDonViDO)
        {
            return objcmsDonViDAL.SelectByMaDonViTinh(objcmsDonViDO);
        }
#endregion          
    
    }

}
